<template>
  <div id="app">
    <div class="app-header">
      <i class="el-icon-arrow-left" @click="junpPage"></i>
      <span class="page-title">{{ pageTitle || '' }}</span>
    </div>
    <div class="app-container">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
import junpPage from './mixin/common'
export default {
  name: 'App',
  mixins: [junpPage],
  computed: {
    pageTitle() {
      return this.$route.meta.title;
    }
  }
}
</script>

<style>
#app {
  margin: 0 auto;
  position: relative;
  margin-top: 5px;
  
  /* padding-bottom: 12vh; */
}
.app-header {
  width: 100%;
  position: fixed;
  top: 8px;
  height: 6vh;
}
.app-header i {
  margin-left: 10px;
  font-weight: bold;
  font-size: 20px;
}
.page-title {
  width: 80px;
  font-size: 20xp;
  font-weight: bold;
  position: absolute;
  left: 50%;
  margin-left: -25px;
}
.app-container {
  margin-top: 6vh;
  width: 100%;
  position: sticky;
  top: 50px;
  margin-top: 50px;
  /* height: 555px; */
  height: 88vh;
  overflow: auto;
}
</style>
